package polymorphism;

public class Test2 {
    public static void main(String[] args) {
        //掌握抽象类的好处
        Animal a = new Cat();
        a.setName("小怪");
        a.cry();//更好的支持了多态
    }
}
